import request from '@/utils/request'

// 查询环境光谱列表
export function listEnv_spectrum(query) {
  return request({
    url: '/spectrum/env_spectrum/list',
    method: 'get',
    params: query
  })
}

// 查询环境光谱详细
export function getEnv_spectrum(envSpectrumId) {
  return request({
    url: '/spectrum/env_spectrum/' + envSpectrumId,
    method: 'get'
  })
}

// 新增环境光谱
export function addEnv_spectrum(data) {
  return request({
    url: '/spectrum/env_spectrum',
    method: 'post',
    data: data
  })
}

// 修改环境光谱
export function updateEnv_spectrum(data) {
  return request({
    url: '/spectrum/env_spectrum',
    method: 'put',
    data: data
  })
}

// 删除环境光谱
export function delEnv_spectrum(envSpectrumId) {
  return request({
    url: '/spectrum/env_spectrum/' + envSpectrumId,
    method: 'delete'
  })
}
